﻿using LanqiQAwebapi.Models;

namespace LanqiQAwebapi.Interface
{
    public interface Icomments
    {

        /// <summary>
        /// 文章的评论信息
        /// </summary>
        /// <param name="page"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        List<Comment> GetCommentsByEssayIdAsync(int page, int pagesize, int essay);

        /// <summary>
        /// 评论文章
        /// </summary>
        /// <param name="essayid"></param>
        /// <param name="userid"></param>
        /// <param name="commnet"></param>
        void AddCommentAsync(int essayid, int userid, string commnet);
        /// <summary>
        /// 对某一个用户评论限定在一个文章中
        /// </summary>
        /// <param name="essayid"></param>
        /// <param name="userid"></param>
        /// <param name="commnet"></param>
        /// <param name="commentbyuserid"></param>
        void AddCommentByUserAsync(int essayid, int userid, string commnet, string commentbyuserid);

    }
}
